home *** CD-ROM | disk | FTP | other *** search
- class com.ndimedia.ui.ToolTip extends com.ndimedia.ui.UIObject implements com.ndimedia.ui.iUIObject
- {
- var m_sLabel;
- var m_tfLabel;
- var m_namespace = "ToolTip";
- static var X_MARGIN = 5;
- function ToolTip(scope, label)
- {
- super(scope,false);
- this.m_sLabel = label;
- this.graphics.createTextField("tf",101,0,0,10,10);
- this.m_tfLabel = this.graphics.tf;
- this.m_tfLabel.autoSize = true;
- var _loc3_ = new TextFormat("Arial",10,0);
- this.m_tfLabel.setTextFormat(_loc3_);
- this.m_tfLabel.text = label;
- this.m_tfLabel.selectable = false;
- this.hide();
- }
- function show(evt)
- {
- var _loc2_ = evt.target.graphics;
- this.move(_loc2_._parent._xmouse + com.ndimedia.ui.ToolTip.X_MARGIN,_loc2_._parent._ymouse);
- }
- function hide(evt)
- {
- this.move(5000,0);
- }
- }
-